package net.towee.client.history;

import java.util.Map;

import com.google.gwt.event.shared.GwtEvent;

public class HistoryEvent extends GwtEvent<HistoryHandler> {
	public static Type<HistoryHandler> TYPE = new Type<HistoryHandler>();  
	private final Map<String, String> values;
	
	public HistoryEvent(Map<String, String> values) {
		this.values = values;
	}
	
	public Map<String, String> getParameters() {
		return values;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<HistoryHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(HistoryHandler handler) {
		handler.onHistoryEvent( this );
	}

}
